﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="MemberLevel" Object="MemberLevel" InnerID="Request.QueryString['ID']" Validate="True" />
<section data-page="member_level_edit" data-title="编辑会员等级" data-id="<%=MemberLevel[InnerID]%>" data-time-unit="<%=MemberLevel[TimeUnit]%>" data-lang="<%=ContentLang%>">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">会员等级列表</a> → <b class="<%=ContentLang%>Font"><%=MemberLevel[Name]%></b></dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Mark="System" Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<table class="post-table margin2">
				<tr>
					<th>名称：</th>
					<td><input type="text" name="Name" value="<%=MemberLevel[Name]%>" size="40" maxlength="50" class="ali-input <%=ContentLang%>Font"></td>
				</tr>
				<tr>
					<th>起始编号：</th><td><input type="number" name="InitialNo" value="<%=MemberLevel[InitialNo]%>" class="ali-input CHSFont" style="width:100px"></td>
				</tr>
				<tr>
					<th>会员费用：</th>
					<td style="direction:ltr"><input type="text" name="Fee" value="<%=MemberLevel[Fee]%>" class="ali-input CHSFont" style="width:60px">元<span> / <input type="number" name="TimeAmount" value="<%=MemberLevel[TimeAmount]%>" class="ali-input CHSFont" style="width:60px"><select name="TimeUnit" data-ali-widget="combo"><option value="INFINITE">永久</option><option value="MONTH">月</option><option value="SEASON">季</option><option value="HALF_YEAR">半年</option><option value="YEAR">年</option></select></span></td>
				</tr>
				<tr>
					<th>会员提成：</th>
					<td style="direction:ltr"><input type="text" name="Commision" value="<%=MemberLevel[Commision]%>" size="5" maxlength="4" class="ali-input CHSFont">%</td>
				</tr>
				<tr>
					<th>可否申请：</th>
					<td>
						<%If Convert.ToBoolean(MemberLevel[CanApply])%>
							<label><input type="radio" name="CanApply" value="true" checked>开启</label>
							<label><input type="radio" name="CanApply" value="false">关闭</label>
						<%Else%>
							<label><input type="radio" name="CanApply" value="true">开启</label>
							<label><input type="radio" name="CanApply" value="false" checked>关闭</label>
						<%EndIf%>
					</td>
				</tr>
				<tr<%If !Convert.ToBoolean(MemberLevel[CanApply])%> style="display:none"<%EndIf%>>
					<th>会员协议：</th>
					<td><textarea name="Agreement" data-instance="<%=InstanceID%>" class="editor"><%=HttpUtility.HtmlEncode(MemberLevel[Agreement].ToString())%></textarea></td>
				</tr>
				<tr>
					<th>排序：</th><td><input type="number" name="Sort" value="<%=MemberLevel[Sort]%>" class="ali-input CHSFont" style="width:60px"></td>
				</tr>
			</table>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button></div>
	</form>
</section>